# nginx configuration (Untested)

location / {
  if (!-e $request_filename){
    rewrite ^/(.*)$ /?slug=$1;
  }
}